From 7647deb4170480e1de3ea6c667440d6229dc7d2f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 11 Apr 2010 19:52:58 +0200 Subject: [PATCH] GtkStyleSet: Make property registration take const GValues. --- gtk/gtkstyleset.c | 6 +++--- gtk/gtkstyleset.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkstyleset.c b/gtk/gtkstyleset.c index c26eb3cdbd..f91d3321ab 100644 --- a/gtk/gtkstyleset.c +++ b/gtk/gtkstyleset.c @@ -175,9 +175,9 @@ property_node_lookup (GQuark quark) /* Property registration functions */ void -gtk_style_set_register_property (const gchar *property_name, - GType type, - GValue *default_value) +gtk_style_set_register_property (const gchar *property_name, + GType type, + const GValue *default_value) { PropertyNode *node, new = { 0 }; GQuark quark; diff --git a/gtk/gtkstyleset.h b/gtk/gtkstyleset.h index ff1b859a60..642dd02c31 100644 --- a/gtk/gtkstyleset.h +++ b/gtk/gtkstyleset.h @@ -52,9 +52,9 @@ struct GtkStyleSetClass GType gtk_style_set_get_type (void) G_GNUC_CONST; /* Functions to register style properties */ -void gtk_style_set_register_property (const gchar *property_name, - GType type, - GValue *default_value); +void gtk_style_set_register_property (const gchar *property_name, + GType type, + const GValue *default_value); void gtk_style_set_register_property_color (const gchar *property_name, GdkColor *default_value); -- 2.30.2